package com.zhonghui.scm.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 供应链SCM-销售管理-销售合同对象 scm_sale_contract
 * 
 * @author qiezhi
 * @date 2023-12-22
 */
@Data
public class ScmSaleContractVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNumber;

    /** 销售订单id */
    @Excel(name = "销售订单id")
    private Long orderId;
    private String order_no;
    private Date delivery_date;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customId;
    private String custom_name;

    /** 业务员id */
    @Excel(name = "业务员id")
    private Long salesManId;

    /** 送货方式 */
    @Excel(name = "送货方式")
    private Long shipping;

    /** 收货地址 */
    private String address;

    /** 签订日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签订日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signingDate;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long applyId;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyDate;

    /** 申请状态 */
    @Excel(name = "申请状态")
    private String applyStatus;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Long auditorId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;

    /** 金额合计 */
    @Excel(name = "金额合计")
    private BigDecimal totalAmount;

    /** 审核意见 */
    private String auditorComments;


}
